﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MINERP.Monitor
{
    public partial class UCMidTech : UserControl
    {
        public UCMidTech()
        {
            InitializeComponent();
        }

        public int TechId { get; set; }
        [Bindable(true), Category("TechName"), DefaultValue(""), Description("岗位名称")]
        public string TechName
        {
            set { groupControl1.Text  = value; }
            get { return groupControl1.Text; }
        }

        public void BindData(string completedProductArea, string completedProductNum, string noCompletedProductArea, string noCompletedProductAreaPriority, string noCompletedProductNum, string noCompletedProductNumPriority)
        {
            lbCompletedProductArea.Text = completedProductArea;
            lbCompletedProductNum.Text = completedProductNum;
            lbNoCompletedProductArea.Text = noCompletedProductArea;
            lbNoCompletedProductAreaPriority.Text = noCompletedProductAreaPriority;
            lbNoCompletedProductNum.Text = noCompletedProductNum;
            lbNoCompletedProductNumPriority.Text = noCompletedProductNumPriority;
        }

        private void lkbMidTech_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            FrmMain s = (FrmMain)this.FindForm();
            s.clikEventHander.Invoke(sender, e);
            
        }

    }
}
